package org.msfj.common.submail;

import org.springframework.boot.context.properties.ConfigurationProperties;

import static org.msfj.common.submail.SubmailConfig.PREFIX;

/**
 * @Description:
 * @Author: like
 * @Date: 2017-10-25 14:26
 * @Version: 1.0
 * @Created in idea by autoCode
 */
@ConfigurationProperties(prefix = PREFIX)
public class SubmailConfig {
    public static final String PREFIX = "submail";
    /**
     * 短信验证码
     */
    private String sendUrl = "http://api.submail.cn/message/multixsend.json";
    private String templateUrl = "http://api.submail.cn/message/template.json";
    private String appId;
    private String appKey;

    /**
     * 语音通知
     */
    private String voiceSendUrl = "https://api.submail.cn/voice/multixsend";
    private String voiceAppId;
    private String voiceAppKey;

    private boolean mock = false;

    public boolean isMock() {
        return mock;
    }

    public void setMock(boolean mock) {
        this.mock = mock;
    }

    public String getSendUrl() {
        return sendUrl;
    }

    public void setSendUrl(String sendUrl) {
        this.sendUrl = sendUrl;
    }

    public String getTemplateUrl() {
        return templateUrl;
    }

    public void setTemplateUrl(String templateUrl) {
        this.templateUrl = templateUrl;
    }

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public String getAppKey() {
        return appKey;
    }

    public void setAppKey(String appKey) {
        this.appKey = appKey;
    }

    public String getVoiceSendUrl() {
        return voiceSendUrl;
    }

    public void setVoiceSendUrl(String voiceSendUrl) {
        this.voiceSendUrl = voiceSendUrl;
    }

    public String getVoiceAppId() {
        return voiceAppId;
    }

    public void setVoiceAppId(String voiceAppId) {
        this.voiceAppId = voiceAppId;
    }

    public String getVoiceAppKey() {
        return voiceAppKey;
    }

    public void setVoiceAppKey(String voiceAppKey) {
        this.voiceAppKey = voiceAppKey;
    }
}
